package org.zfes.snowier.zbss.xzy.biz.device.model;
import org.zfes.snowier.core.data.IBaseModel;
public class Device extends IBaseModel{

	private static final long serialVersionUID = 1L;
	
	public Device() {}
	public Device(Long id) {
		this.setId(id);
	}
	//<-------------------------------------------->

	//@javax.validation.constraints.NotNull(message="默认所属租户不能为空")
	  private java.lang.Long tenantId;
	
	@javax.validation.constraints.NotBlank(message="序列号不能为空")
	@javax.validation.constraints.NotNull(message="序列号不能为空")
	@org.hibernate.validator.constraints.Length(min=0,max=80,message="序列号长度不能大于80")
	  private java.lang.String deviceNum;
	
	  private java.lang.Long deviceTypeId;
	  
	  private java.lang.Long deviceModelId;
	  
	@org.hibernate.validator.constraints.Length(min=0,max=20,message="ip地址长度不能大于20")
	  private java.lang.String ipAds;
	@org.hibernate.validator.constraints.Length(min=0,max=80,message="MAC地址长度不能大于80")
	  private java.lang.String macAds;
	@org.hibernate.validator.constraints.Length(min=0,max=100,message="默认名称长度不能大于100")
	  private java.lang.String name;
	@org.hibernate.validator.constraints.Length(min=0,max=100,message="备注长度不能大于100")
	  private java.lang.String remark;
	 @javax.validation.constraints.Digits(integer=3,fraction=7,message="经度数据精度错误")  
	 private java.lang.Double locLat;
	 @javax.validation.constraints.Digits(integer=3,fraction=7,message="纬度数据精度错误")  
	 private java.lang.Double locLon;
	@org.hibernate.validator.constraints.Length(min=0,max=200,message="位置描述长度不能大于200")
	  private java.lang.String location;
	  private java.lang.Byte status;
	  private java.util.Date createTime;
	  private java.util.Date updateTime;
 
	
	//<-------------------------------------------->
	public Device setTenantId(java.lang.Long tenantId){
	 this.tenantId=tenantId;
	 return this;
	}
	public java.lang.Long getTenantId(){
		return this.tenantId;
	}
	public Device setDeviceNum(java.lang.String deviceNum){
		this.deviceNum=deviceNum==null?null:deviceNum.trim();
	 return this;
	}
	public java.lang.String getDeviceNum(){
		return this.deviceNum;
	}
	
	public Device setIpAds(java.lang.String ipAds){
		this.ipAds=ipAds==null?null:ipAds.trim();
	 return this;
	}
	public java.lang.String getIpAds(){
		return this.ipAds;
	}
	public Device setMacAds(java.lang.String macAds){
		this.macAds=macAds==null?null:macAds.trim();
	 return this;
	}
	public java.lang.String getMacAds(){
		return this.macAds;
	}
	public Device setName(java.lang.String name){
		this.name=name==null?null:name.trim();
	 return this;
	}
	public java.lang.String getName(){
		return this.name;
	}
	public Device setRemark(java.lang.String remark){
		this.remark=remark==null?null:remark.trim();
	 return this;
	}
	public java.lang.String getRemark(){
		return this.remark;
	}
	public Device setLocLat(java.lang.Double locLat){
	 this.locLat=locLat;
	 return this;
	}
	public java.lang.Double getLocLat(){
		return this.locLat;
	}
	public Device setLocLon(java.lang.Double locLon){
	 this.locLon=locLon;
	 return this;
	}
	public java.lang.Double getLocLon(){
		return this.locLon;
	}
	public Device setLocation(java.lang.String location){
		this.location=location==null?null:location.trim();
	 return this;
	}
	public java.lang.String getLocation(){
		return this.location;
	}
	
	public Device setStatus(java.lang.Byte status){
	 this.status=status;
	 return this;
	}
	public java.lang.Byte getStatus(){
		return this.status;
	}
	public Device setCreateTime(java.util.Date createTime){
	 this.createTime=createTime;
	 return this;
	}
	public java.util.Date getCreateTime(){
		return this.createTime;
	}
	public Device setUpdateTime(java.util.Date updateTime){
	 this.updateTime=updateTime;
	 return this;
	}
	public java.util.Date getUpdateTime(){
		return this.updateTime;
	}
	public java.lang.Long getDeviceTypeId() {
		return deviceTypeId;
	}
	public void setDeviceTypeId(java.lang.Long deviceTypeId) {
		this.deviceTypeId = deviceTypeId;
	}
	public java.lang.Long getDeviceModelId() {
		return deviceModelId;
	}
	public void setDeviceModelId(java.lang.Long deviceModelId) {
		this.deviceModelId = deviceModelId;
	}
	
	
	
	@Override
	public String toString() {
		return "Device [tenantId=" + tenantId + ", deviceNum=" + deviceNum + ", deviceTypeId=" + deviceTypeId
				+ ", deviceModelId=" + deviceModelId + ", ipAds=" + ipAds + ", macAds=" + macAds + ", name=" + name
				+ ", remark=" + remark + ", locLat=" + locLat + ", locLon=" + locLon + ", location=" + location
				+ ", status=" + status + ", createTime=" + createTime + ", updateTime=" + updateTime + "]";
	}


}
